home *** CD-ROM | disk | FTP | other *** search
/ The Ultimate Frank Lloyd…ght - America's Architect / Ultimate Frank Lloyd Wright, The - America's Architect (1994)(Microsoft Home).iso / pre / flw / flwseph.dir / 00214_Script_214 < prev    next >
Text File  |  1994-11-15  |  24KB  |  717 lines

  1. on startMovie
  2.   global nowFrame
  3.   global lastRoll,lastCast,lastMovie
  4.   put the movie into lastMovie
  5.   set nowFrame = "semai000000f°°"
  6.   
  7.   set lastRoll = 0
  8.   set lastCast = 0
  9.   repeat with i = 10 to 15
  10.     puppetSprite i, TRUE
  11.     set the immediate of sprite i to TRUE
  12.   end repeat
  13.   puppetSprite 21, TRUE
  14.   puppetSprite 22, TRUE
  15.   puppetSprite 23, TRUE
  16.   set the immediate of sprite 23 to FALSE
  17.   set the stretch of sprite 23 to FALSE
  18. end startMovie
  19.  
  20. on stepMovie
  21.   global nowFrame,currFrame
  22.   if nowFrame  <> currFrame then
  23.     seeAlsoList
  24.     set currFrame = nowFrame
  25.   end if
  26. end stepMovie
  27.  
  28. on stopMovie
  29.   set the castNum of sprite 21 to 1050
  30.   puppetSprite 21, FALSE
  31.   put " " into field "SeeAlsoText"
  32.   updateStage
  33. end stopMovie
  34.  
  35. on saveLocals
  36.   global lastFrame,nowFrame,lastMovie
  37.   set lastMovie = "FLWSEPH"
  38.   set lastFrame = nowFrame 
  39. end saveLocals
  40.  
  41. on seForStep
  42.   global nowFrame
  43.   put the castNum of sprite 9 into cName
  44.   if chars(nowFrame,12,12) = "l" then 
  45.     go to frame "sesitint000°°°" of movie "FLWSESI"
  46.   else if cName = A28 then
  47.     puppetTransition 2,0,128
  48.     go to marker(+2) 
  49.   else
  50.     puppetTransition 2,0,128
  51.     puppetSprite 2, FALSE
  52.     go to marker(+1)
  53.   end if
  54.   unLoadCast 180,213
  55. end seForStep
  56.  
  57. on seBackStep
  58.   global nowFrame,jmpStep 
  59.   put the castNum of sprite 9 into cName
  60.   if chars(nowFrame,11,11) = "1" then
  61.     go to marker(-2)
  62.   else if chars(nowFrame,6,8) = "int" then
  63.     go to "setyptow005°°°" of movie "FLWSETY"
  64.   else if cName = A27 or cName = A28 then
  65.     puppetTransition 1,0,128
  66.     go to marker(jmpStep)
  67.   else
  68.     puppetTransition 1,0,128
  69.     go to marker(-1) 
  70.   end if
  71.   unLoadCast 180,213
  72. end seBackStep
  73.  
  74. on mainRtn
  75.   global swapSpnum,rollFlag
  76.   set rollFlag = FALSE
  77.   
  78.   menuRollOver()
  79.   if rollFlag = TRUE then
  80.     when  mouseDown then  isPress(swapSpnum)
  81.   else
  82.     when mouseDown then nothing
  83.   end if
  84.   buttonState
  85.   
  86. end mainRtn
  87.  
  88. on buttonState
  89.   global bflag, FrankNav, noTx, dialogOn
  90.   
  91.   
  92.   if dialogOn = FALSE then
  93.     
  94.     
  95.     -- don't check global buttons unless mouse is down at bottom
  96.     if (the mouseV > 200) or (bFlag = TRUE) then
  97.       set bFlag = FALSE
  98.       doState
  99.     end if
  100.   else
  101.     if the mouseDown then 
  102.       if the mouseCast <> the number of cast "glossDialog" then
  103.         beep
  104.       end if
  105.     end if
  106.   end if
  107. end buttonState
  108.  
  109. on isrollPhil 
  110.   global phiint,org, tec, dem, uni, bal, ref, lig, tru
  111.   global nowroll
  112.   if (the mouseH >= item 1 of phiint and the mouseH <= item 2 of phiint)¼
  113.       and (the mouseV >= item 3 of phiint and the mouseV <= item 4 of phiint) then
  114.     set nowroll = "phiint"
  115.   else if (the mouseH >= item 1 of org and the mouseH <= item 2 of org)¼
  116.       and (the mouseV >= item 3 of org and the mouseV <= item 4 of org) then
  117.     set nowroll = "org"
  118.   else if (the mouseH >= item 1 of tec and the mouseH <= item 2 of tec)¼
  119.        and (the mouseV >= item 3 of tec and the mouseV <= item 4 of tec) then
  120.     set nowroll = "tec"
  121.   else if (the mouseH >= item 1 of dem and the mouseH <= item 2 of dem)¼
  122.        and (the mouseV >= item 3 of dem and the mouseV <= item 4 of dem) then
  123.     set nowroll = "dem"
  124.   else if (the mouseH >= item 1 of uni and the mouseH <= item 2 of uni)¼
  125.      and (the mouseV >= item 3 of uni and the mouseV <= item 4 of uni) then
  126.     set nowroll = "uni"
  127.   else if (the mouseH >= item 1 of bal and the mouseH <= item 2 of bal)¼
  128.      and (the mouseV >= item 3 of bal and the mouseV <= item 4 of bal) then
  129.     set nowroll = "bal"
  130.   else if  (the mouseH >= item 1 of ref and the mouseH <= item 2 of ref)¼
  131.      and ( the mouseV >= item 3 of ref and the mouseV <= item 4 of ref) then
  132.     set nowroll = "ref"
  133.   else if (the mouseH >= item 1 of lig and the mouseH <= item 2 of lig)¼
  134.      and (the mouseV >= item 3 of lig and the mouseV <= item 4 of lig) then
  135.     set nowroll = "lig"
  136.   else if (the mouseH >= item 1 of tru and the mouseH <= item 2 of tru)¼
  137.     and (the mouseV >= item 3 of tru and  the mouseV <= item 4 of tru) then
  138.     set nowroll = "tru"
  139.   else
  140.     set nowroll = ""
  141.   end if
  142.   updateStage
  143.   return nowroll
  144. end isrollPhil
  145.  
  146. on isrollSite 
  147.   global sitint,fla,hil, mou
  148.   global nowroll
  149.   if (the mouseH >= item 1 of sitint and the mouseH <= item 2 of sitint)¼
  150.       and (the mouseV >= item 3 of sitint and the mouseV <= item 4 of sitint) then
  151.     set nowroll = "sitint"
  152.   else if (the mouseH >= item 1 of fla and the mouseH <= item 2 of fla)¼
  153.       and (the mouseV >= item 3 of fla and the mouseV <= item 4 of fla) then
  154.     set nowroll = "fla"
  155.   else if (the mouseH >= item 1 of hil and the mouseH <= item 2 of hil)¼
  156.        and (the mouseV >= item 3 of hil and the mouseV <= item 4 of hil) then
  157.     set nowroll = "hil"
  158.   else if (the mouseH >= item 1 of mou and the mouseH <= item 2 of mou)¼
  159.        and (the mouseV >= item 3 of mou and the mouseV <= item 4 of mou) then
  160.     set nowroll = "mou"
  161.   else
  162.     set nowroll = "" 
  163.   end if
  164.   return nowroll
  165. end isrollSite
  166.  
  167. on isrollPatt 
  168.   global patint,geo, col,sou,mus,cul,nat
  169.   global nowroll
  170.   if (the mouseH >= item 1 of patint and the mouseH <= item 2 of patint)¼
  171.       and (the mouseV >= item 3 of patint and the mouseV <= item 4 of patint) then
  172.     set nowroll = "patint"
  173.   else if (the mouseH >= item 1 of geo and the mouseH <= item 2 of geo)¼
  174.       and (the mouseV >= item 3 of geo and the mouseV <= item 4 of geo) then
  175.     set nowroll = "geo"
  176.   else if (the mouseH >= item 1 of col and the mouseH <= item 2 of col)¼
  177.        and (the mouseV >= item 3 of col and the mouseV <= item 4 of col) then
  178.     set nowroll = "col"
  179.   else if (the mouseH >= item 1 of sou and the mouseH <= item 2 of sou)¼
  180.        and (the mouseV >= item 3 of sou and the mouseV <= item 4 of sou) then
  181.     set nowroll = "sou"
  182.   else if (the mouseH >= item 1 of mus and the mouseH <= item 2 of mus)¼
  183.      and (the mouseV >= item 3 of mus and the mouseV <= item 4 of mus) then
  184.     set nowroll = "mus"
  185.   else if (the mouseH >= item 1 of cul and the mouseH <= item 2 of cul)¼
  186.      and (the mouseV >= item 3 of cul and the mouseV <= item 4 of cul) then
  187.     set nowroll = "cul"
  188.   else if (the mouseH >= item 1 of nat and the mouseH <= item 2 of nat)¼
  189.      and (the mouseV >= item 3 of nat and the mouseV <= item 4 of nat) then
  190.     set nowroll = "nat"
  191.   else
  192.     set nowroll = ""   
  193.   end if
  194.   return nowroll
  195. end isrollPatt
  196.  
  197. on isrollMate
  198.   global matint,woo,sto,gla, bri,cop,con,rei
  199.   global nowroll
  200.   if (the mouseH >= item 1 of matint and the mouseH <= item 2 of matint)¼
  201.       and (the mouseV >= item 3 of matint and the mouseV <= item 4 of matint) then
  202.     set nowroll = "matint"
  203.   else if (the mouseH >= item 1 of woo and the mouseH <= item 2 of woo)¼
  204.       and (the mouseV >= item 3 of woo and the mouseV <= item 4 of woo) then
  205.     set nowroll = "woo"
  206.   else if (the mouseH >= item 1 of sto and the mouseH <= item 2 of sto)¼
  207.        and (the mouseV >= item 3 of sto and the mouseV <= item 4 of sto) then
  208.     set nowroll = "sto"
  209.   else if (the mouseH >= item 1 of gla and the mouseH <= item 2 of gla)¼
  210.        and (the mouseV >= item 3 of gla and the mouseV <= item 4 of gla) then
  211.     set nowroll = "gla"
  212.   else if (the mouseH >= item 1 of bri and the mouseH <= item 2 of bri)¼
  213.      and (the mouseV >= item 3 of bri and the mouseV <= item 4 of bri) then
  214.     set nowroll = "bri"
  215.   else if (the mouseH >= item 1 of cop and the mouseH <= item 2 of cop)¼
  216.      and (the mouseV >= item 3 of cop and the mouseV <= item 4 of cop) then
  217.     set nowroll = "cop"
  218.   else if (the mouseH >= item 1 of cop and the mouseH <= item 2 of con)¼
  219.      and (the mouseV >= item 3 of cop and the mouseV <= item 4 of con) then
  220.     set nowroll = "con"
  221.   else if (the mouseH >= item 1 of rei and the mouseH <= item 2 of rei)¼
  222.      and (the mouseV >= item 3 of rei and the mouseV <= item 4 of rei) then
  223.     set nowroll = "rei"
  224.   else
  225.     set nowroll = ""   
  226.   end if
  227.   return nowroll
  228. end isrollMate
  229.  
  230. on isrollType 
  231.   global typint,atr, hea, tow
  232.   global nowroll
  233.   if (the mouseH >= item 1 of typint and the mouseH <= item 2 of typint)¼
  234.       and (the mouseV >= item 3 of typint and the mouseV <= item 4 of typint) then
  235.     set nowroll = "typint"
  236.   else if (the mouseH >= item 1 of atr and the mouseH <= item 2 of atr)¼
  237.       and (the mouseV >= item 3 of atr and the mouseV <= item 4 of atr) then
  238.     set nowroll = "atr"
  239.   else if (the mouseH >= item 1 of hea and the mouseH <= item 2 of hea)¼
  240.        and (the mouseV >= item 3 of hea and the mouseV <= item 4 of hea) then
  241.     set nowroll = "hea"
  242.   else if (the mouseH >= item 1 of tow and the mouseH <= item 2 of tow)¼
  243.        and (the mouseV >= item 3 of tow and the mouseV <= item 4 of tow) then
  244.     set nowroll = "tow"
  245.   else
  246.     set nowroll = ""   
  247.   end if
  248.   return nowroll
  249. end isrollType
  250.  
  251. on locCheck spriteNum
  252.   global nowroll
  253.   if the mouseH >= 22 and the mouseH <= (22 + 97) then
  254.     set nowroll = isrollPhil()
  255.     isrollPhil()
  256.     philroll(nowroll,3)
  257.   else if the mouseH >= 142 and the mouseH <= (142 + 87) then
  258.     set nowroll = isrollSite()
  259.     siteroll(nowroll,3)
  260.   else if the mouseH >= 268 and the mouseH <= (268 + 94) then
  261.     set nowroll = isrollPatt()
  262.     pattroll(nowroll,3)
  263.   else if the mouseH >= 392 and the mouseH <= (392 + 92) then
  264.     set nowroll = isrollMate()
  265.     materoll(nowroll,3)
  266.   else if the mouseH >= 521 and the mouseH <= (521 + 70) then
  267.     set nowroll = isrollType()
  268.     typeroll(nowroll,3)
  269.   end if
  270. end locCheck
  271.  
  272. on philroll nowroll,spriteNum
  273.   global flashtimer,phiint
  274.   set flashtimer = FALSE
  275.   set cName = A88
  276.   set resetCname = A51
  277.   if nowroll = "phiint" then
  278.     set the castNum of sprite spriteNum to cName
  279.   else if nowroll = "org" then
  280.     set the castNum of sprite spriteNum to cName + 1
  281.   else if nowroll = "tec" then
  282.     set the castNum of sprite spriteNum to cName + 2
  283.   else if nowroll = "dem" then
  284.     set the castNum of sprite spriteNum to cName + 3
  285.   else if nowroll = "uni" then
  286.     set the castNum of sprite spriteNum to cName + 4
  287.   else if nowroll = "bal" then
  288.     set the castNum of sprite spriteNum to cName + 5
  289.   else if nowroll = "ref" then
  290.     set the castNum of sprite spriteNum to cName + 6
  291.   else if nowroll = "lig" then
  292.     set the castNum of sprite spriteNum to cName + 7
  293.   else if nowroll = "tru" then
  294.     set the castNum of sprite spriteNum to cName + 8
  295.   else
  296.     set the castNum of sprite spriteNum to resetCname
  297.     set flashtimer = TRUE 
  298.   end if
  299.   updateStage
  300.   
  301. end philroll
  302.  
  303. on siteroll nowroll,spriteNum
  304.   global flashtimer,sitint
  305.   set flashtimer = FALSE
  306.   set cName = B21
  307.   set resetCname = A51
  308.   if nowroll = "sitint" then
  309.     set the castNum of sprite spriteNum to cName
  310.   else if nowroll = "fla" then
  311.     set the castNum of sprite spriteNum to cName + 1
  312.   else if nowroll = "hil" then
  313.     set the castNum of sprite spriteNum to cName + 2
  314.   else if nowroll = "mou" then
  315.     set the castNum of sprite spriteNum to cName + 3
  316.   else
  317.     set the castNum of sprite spriteNum to resetCname
  318.     set flashtimer = TRUE
  319.   end if
  320.   updateStage
  321. end siteroll
  322.  
  323. on pattroll nowroll,spriteNum
  324.   global flashtimer,patint
  325.   set flashtimer = FALSE
  326.   set cName = B25
  327.   set resetCname = A51
  328.   if nowroll = "patint" then
  329.     set the castNum of sprite spriteNum to cName
  330.   else if nowroll = "geo" then
  331.     set the castNum of sprite spriteNum to cName + 1
  332.   else if nowroll = "col" then
  333.     set the castNum of sprite spriteNum to cName + 2
  334.   else if nowroll = "sou" then
  335.     set the castNum of sprite spriteNum to cName + 7
  336.   else if nowroll = "mus" then
  337.     set the castNum of sprite spriteNum to cName + 4
  338.   else if nowroll = "cul" then
  339.     set the castNum of sprite spriteNum to cName + 5
  340.   else if nowroll = "nat" then
  341.     set the castNum of sprite spriteNum to cName + 6
  342.   else
  343.     set the castNum of sprite spriteNum to resetCname
  344.     set flashtimer = TRUE
  345.   end if
  346. end pattroll
  347.  
  348. on materoll nowroll,spriteNum
  349.   global flashtimer,matint
  350.   set flashtimer = FALSE
  351.   set cName = B35
  352.   set resetCname = A51
  353.   if nowroll = "matint" then
  354.     set the castNum of sprite spriteNum to cName
  355.   else if nowroll = "woo" then
  356.     set the castNum of sprite spriteNum to cName + 1
  357.   else if nowroll = "sto" then
  358.     set the castNum of sprite spriteNum to cName + 2
  359.   else if nowroll = "gla" then
  360.     set the castNum of sprite spriteNum to cName + 3
  361.   else if nowroll = "bri" then
  362.     set the castNum of sprite spriteNum to cName + 4
  363.   else if nowroll = "cop" then
  364.     set the castNum of sprite spriteNum to cName + 5
  365.   else if nowroll = "con" then
  366.     set the castNum of sprite spriteNum to cName + 6
  367.   else if nowroll = "rei" then
  368.     set the castNum of sprite spriteNum to cName + 7
  369.   else
  370.     set the castNum of sprite spriteNum to resetCname
  371.     set flashtimer = TRUE
  372.   end if
  373.   updateStage
  374. end materoll
  375.  
  376. on typeroll nowroll,spriteNum
  377.   global flashtimer,typint
  378.   set flashtimer = FALSE
  379.   set cName = B45
  380.   set resetCname = A51
  381.   if nowroll = "typint" then
  382.     set the castNum of sprite spriteNum to cName
  383.   else if nowroll = "atr" then
  384.     set the castNum of sprite spriteNum to cName + 1
  385.   else if nowroll = "hea" then
  386.     set the castNum of sprite spriteNum to cName + 2
  387.   else if nowroll = "tow" then
  388.     set the castNum of sprite spriteNum to cName + 3
  389.   else
  390.     set the castNum of sprite spriteNum to resetCname
  391.     set flashtimer = TRUE
  392.   end if
  393.   updateStage
  394. end typeroll
  395.  
  396. on isPress spriteNum 
  397.   global nowFrame,rollFlag, nextMov, lastMovie
  398.   set restate  = A51
  399.   set buttonSucess = FALSE
  400.   set resetCastNo = A31
  401.   set nowPress = isrollPhil()
  402.   if nowPress = "phiint"  then
  403.     set buttonSucess = TRUE
  404.     put nowPress into clickasset
  405.     set nextMov = "FLWSEPH"
  406.   end if
  407.   if nowPress <> ""  and nowPress <> "phiint" then 
  408.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  409.     set resetSprite = 10
  410.     set resetCast = resetCastNo
  411.     put "phi" & nowPress  into clickasset
  412.     set nextMov = "FLWSEPH"
  413.     set buttonSucess = TRUE
  414.     
  415.     repeat while the stillDown
  416.       if isrollPhil() = nowPress then
  417.         put "phi" into secName
  418.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  419.         set resetSprite = 10
  420.         set resetCast = resetCastNo
  421.         put "phi" & nowPress  into clickasset
  422.         set buttonSucess = TRUE
  423.       else if isrollPhil() <> nowPress   then
  424.         set the ink of sprite spriteNum to 8
  425.         set the castNum of sprite spriteNum to  restate
  426.         set buttonSucess = FALSE
  427.       end if
  428.       updateStage
  429.     end repeat
  430.   end if
  431.   
  432.   set nowPress = isrollSite()
  433.   if nowPress = "sitint" then
  434.     set buttonSucess = TRUE
  435.     put nowPress into clickasset
  436.     set nextMov = "FLWSESI"
  437.   end if
  438.   if nowPress  <> "" and nowPress <> "sitint" then
  439.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  440.     set resetSprite = 11
  441.     set resetCast = resetCastNo + 1
  442.     put "sit" & nowPress  into clickasset
  443.     set nextMov = "FLWSESI"
  444.     set buttonSucess = TRUE
  445.     updateStage
  446.     repeat while the stillDown
  447.       if isrollSite() = nowPress then
  448.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  449.         set resetSprite = 11
  450.         set resetCast = resetCastNo + 1
  451.         put "sit" & nowPress  into clickasset
  452.         set buttonSucess = TRUE
  453.       else if isrollSite() <> nowPress  then
  454.         set the ink of sprite spriteNum to 8
  455.         set the castNum of sprite spriteNum to  restate
  456.         set buttonSucess = FALSE
  457.       end if
  458.       updateStage
  459.     end repeat
  460.   end if
  461.   
  462.   set nowPress = isrollPatt()
  463.   if nowPress = "patint"  then
  464.     set buttonSucess = TRUE
  465.     put nowPress into clickasset
  466.     set nextMov = "FLWSEPA"
  467.   end if
  468.   if nowPress  <> "" and nowPress <> "patint" then
  469.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  470.     set resetSprite = 12
  471.     set resetCast = resetCastNo + 2
  472.     put "pat" & nowPress  into clickasset
  473.     set nextMov = "FLWSEPA"
  474.     --    if nowPress = "sou" then
  475.     --      set buttonSucess to FALSE
  476.     --    else
  477.     set buttonSucess = TRUE
  478.     --    end if
  479.     updateStage
  480.     repeat while the stillDown
  481.       if isrollPatt() = nowPress then
  482.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  483.         set resetSprite = 12
  484.         set resetCast = resetCastNo + 2
  485.         put "pat" & nowPress  into clickasset
  486.         set buttonSucess = TRUE
  487.         --        if nowPress = "sou" then
  488.         --          set buttonSucess to FALSE
  489.         --        end if
  490.       else if isrollPatt() <> nowPress then
  491.         set the ink of sprite spriteNum to 8
  492.         set the castNum of sprite spriteNum to  restate
  493.         set buttonSucess = FALSE
  494.       end if
  495.       updateStage
  496.     end repeat
  497.   end if
  498.   
  499.   set nowPress = isrollMate()
  500.   if nowPress = "matint"  then
  501.     set buttonSucess = TRUE
  502.     put nowPress into clickasset
  503.     set nextMov = "FLWSEMA"
  504.   end if
  505.   if nowPress <> "" and nowPress <> "matint" then
  506.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  507.     set resetSprite = 13
  508.     set resetCast = resetCastNo + 3
  509.     put "mat" & nowPress  into clickasset
  510.     set nextMov = "FLWSEMA"
  511.     set buttonSucess = TRUE
  512.     updateStage
  513.     repeat while the stillDown
  514.       if isrollMate() = nowPress then
  515.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  516.         set resetSprite = 13
  517.         set resetCast = resetCastNo + 3
  518.         put "mat" & nowPress  into clickasset
  519.         set buttonSucess = TRUE
  520.       else if isrollMate() <> nowPress  then
  521.         set the ink of sprite spriteNum to 8
  522.         set the castNum of sprite spriteNum to  restate
  523.         set buttonSucess = FALSE
  524.       end if
  525.       updateStage
  526.     end repeat
  527.   end if
  528.   
  529.   set nowPress = isrollType()
  530.   if nowPress = "typint" then
  531.     set buttonSucess = TRUE
  532.     put nowPress into clickasset
  533.     set nextMov = "FLWSETY"
  534.   end if
  535.   if nowPress  <> "" and nowPress <> "typint" then
  536.     set the castNum of sprite spriteNum to the number of cast(nowPress & "dwn")
  537.     set resetSprite = 14
  538.     set resetCast = resetCastNo + 4
  539.     put "typ" & nowPress  into clickasset
  540.     set nextMov = "FLWSETY"
  541.     set buttonSucess = TRUE
  542.     updateStage
  543.     repeat while the stillDown
  544.       if isrollType() = nowPress then
  545.         set the castNum of sprite spriteNum to the number of cast (nowPress & "dwn")
  546.         set resetSprite = 14
  547.         set resetCast = resetCastNo + 4
  548.         put "typ" & nowPress  into clickasset
  549.         set buttonSucess = TRUE
  550.       else if isrollType() <> nowPress  then
  551.         set the ink of sprite spriteNum to 8
  552.         set the castNum of sprite spriteNum to  restate
  553.         set buttonSucess = FALSE
  554.       end if
  555.       updateStage
  556.     end repeat
  557.   end if
  558.   
  559.   if buttonSucess = TRUE then
  560.     set the ink of sprite spriteNum to 8
  561.     if spriteNum = 3 then
  562.       set the castNum of sprite spriteNum to restate
  563.       updateStage
  564.       puppetSprite spriteNum, FALSE
  565.     else
  566.       put the timer + 10 into time
  567.       set the castNum of sprite spriteNum to restate
  568.       updateStage
  569.       repeat while the timer < time
  570.       end repeat
  571.       -- put the timer + 10 into time
  572.       -- repeat while the timer  < time
  573.       -- end repeat
  574.       --set the castNum of sprite resetSprite to resetCast
  575.       -- updateStage
  576.       -- put the timer + 10 into time
  577.       -- repeat while the timer  < time
  578.       -- end repeat
  579.       puppetSprite spriteNum,FALSE
  580.     end if
  581.     
  582.     if clickasset = "patsou" then
  583.       set clickasset = "patmus"
  584.     end if
  585.     
  586.     put "se" & clickasset & "000°°°" into jmpFrame
  587.     if chars(nowFrame,3,5) <> "mai" then resetHit
  588.     set rollFlag = FALSE
  589.     set the ink of sprite spriteNum to 8
  590.     puppetSprite 2, FALSE
  591.     puppetSprite 4, FALSE
  592.     puppetSprite 5, FALSE
  593.     
  594.     if chars(clickasset,1,2)=chars(lastMovie,6,7) then
  595.       go to frame jmpFrame
  596.       flush
  597.     else
  598.       go to frame jmpFrame of movie nextMov
  599.       flush
  600.     end if
  601.   end if
  602. end isPress
  603.  
  604. on setPuppet state
  605.   repeat with i = 10 to 15
  606.     puppetSprite i, state
  607.     set the immediate of sprite i to state
  608.   end repeat
  609. end setPuppet
  610.  
  611. on menuRollOver 
  612.   global lastRoll,lastCast,nowFrame,rollFlag
  613.   set resetState = A51
  614.   set cName = A41
  615.   set lCname = A22
  616.   set currHit = A31
  617.   put chars(nowFrame,3,5) into currSec
  618.   
  619.   set rollFlag = FALSE
  620.   
  621.   if currSec = "phi" then
  622.     set the castNum of sprite 10 to currHit
  623.   else if currSec = "sit" then
  624.     set the castNum of sprite 11 to currHit + 1
  625.   else if currSec = "pat" then
  626.     set the castNum of sprite 12 to currHit + 2
  627.   else if currSec = "mat" then
  628.     set the castNum of sprite 13 to currHit + 3
  629.   else if currSec = "typ" then
  630.     set the castNum of sprite 14 to currHit + 4
  631.   end if
  632.   
  633.   if rollOver(10) then
  634.     set rollFlag = TRUE
  635.     if lastRoll <> 0 and lastRoll <> 10  then
  636.       set the castNum of sprite lastRoll to lastCast
  637.     end if
  638.     set the castNum of  sprite 10 to cName
  639.     set lastRoll = 10
  640.     set lastCast = lCname
  641.     set nowroll = isrollPhil()
  642.     philroll(nowroll,15)
  643.   else if rollOver(11) then
  644.     set rollFlag = TRUE
  645.     if lastRoll <> 0 and lastRoll <> 11  then
  646.       set the castNum of sprite lastRoll to lastCast
  647.     end if
  648.     set the castNum of  sprite 11 to cName + 1
  649.     set lastRoll = 11
  650.     set lastCast = lCname + 1
  651.     set nowroll = isrollSite()
  652.     siteroll(nowroll,15)
  653.   else if rollOver(12) then
  654.     set rollFlag = TRUE
  655.     if lastRoll <> 0 and lastRoll <> 12 then
  656.       set the castNum of sprite lastRoll to  lastCast
  657.     end if
  658.     set the castNum of  sprite 12 to cName + 2
  659.     set lastRoll = 12
  660.     set lastCast = lCname + 2
  661.     set nowroll = isrollPatt()
  662.     pattroll(nowroll,15)
  663.   else if rollOver(13) then
  664.     set rollFlag = TRUE
  665.     if lastRoll <> 0 and lastRoll <> 13 then
  666.       set the castNum of sprite lastRoll to  lastCast
  667.     end if
  668.     set the castNum of  sprite 13 to cName + 3
  669.     set lastRoll = 13 
  670.     set lastCast = lCname + 3
  671.     set nowroll = isrollMate()
  672.     materoll(nowroll,15)
  673.   else if rollOver(14) then
  674.     set rollFlag = TRUE
  675.     if lastRoll <> 0 and lastRoll <> 14 then
  676.       set the castNum of sprite lastRoll to  lastCast
  677.     end if
  678.     set the castNum of sprite 14 to cName + 4 
  679.     set lastRoll = 14
  680.     set lastCast = lCname + 4
  681.     set nowroll = isrollType()
  682.     Typeroll(nowroll,15)
  683.   else 
  684.     set rollFlag = FALSE 
  685.     set the castNum of sprite lastRoll to lastCast
  686.     set the castNum of sprite 15 to  resetState
  687.     if currSec = "phi" then
  688.       set the castNum of sprite 10 to currHit
  689.     else if currSec = "sit" then
  690.       set the castNum of sprite 11 to currHit + 1
  691.     else if currSec = "pat" then
  692.       set the castNum of sprite 12 to currHit + 2
  693.     else if currSec = "mat" then
  694.       set the castNum of sprite 13 to currHit + 3
  695.     else if currSec = "typ" then
  696.       set the castNum of sprite 14 to currHit + 4
  697.     end if 
  698.   end if
  699.   updateStage
  700.   return rollFlag
  701. end menuRollOver
  702.  
  703. on resetHit
  704.   set hitSp = A22
  705.   repeat with i = 0 to 4 
  706.     set the castNum of sprite (i+10) to (hitSp + i)
  707.     updateStage
  708.   end repeat
  709. end resetHit
  710.  
  711. on gUnPuppet
  712.   setPuppet FALSE  
  713. end gUnpuppet
  714.  
  715.  
  716.  
  717.